package com.ruoyi.app.controller;

import com.ruoyi.app.domain.AppUsers;
import com.ruoyi.app.service.IAppUsersService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/users/test")
public class AppAlumniCardController extends BaseController {

    @Autowired
    private IAppUsersService appUsersService;

    /**
     * 新增校友卡
     * 
     * @param appUsers 用户信息
     * @return
     */
    @PostMapping("/alumniCard")
    public AjaxResult insertAlumniCard(@RequestBody AppUsers appUsers) {
        return toAjax(appUsersService.insertAlumniCard(appUsers));
    }
}
